package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2018/10/27.
 */
@TableName(value = "vl_content")
public class Content extends Model<Content> {
    private int id;
    String content;
    @TableField(value = "title_id")
    int titleId;
    @TableField(value = "title_user")
    private int titleUser;
    @TableField(value = "user_id")
    private int userId;
    @TableField(value = "parent_id")
    private int parentId;
    @TableField(value = "create_time")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getTitleUser() {
        return titleUser;
    }

    public void setTitleUser(int titleUser) {
        this.titleUser = titleUser;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
